package com.yxtbd.travel.travelvm.model.api

import com.yxtbd.travel.travelvm.model.bean.LoginBean
import retrofit2.http.FieldMap
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 * description ： TravelService
 *
 * author : taodq
 * date : 2020/3/30 17:40
 */
interface TravelService {

    companion object {
        const val BASE_URL = "http://125.76.225.162:80/api/"
    }

    /***
     * 登录接口
     */
    @FormUrlEncoded
    @POST("auth/oauth/token")
    suspend fun login(@FieldMap map: Map<String, String>): LoginBean
}